var express = require('express');
const { create, remove, update, findById, findByPage } = require('../controller/blogType');
const { visParamsId } = require('../middleware/verify');
var router = express.Router();

// 增
router.post('/', create);

// 删
router.delete('/:id', visParamsId, remove);

// 改
router.put('/:id', visParamsId, update);

// 查：分页
router.get('/', findByPage);

// 查：单个
router.get('/:id', visParamsId, findById);

module.exports = router;
